#include <iostream>
using namespace std;

int main() {
    int x,a,y,b;
    float z;
    cin >> x >> a >> y >> b;
    z = (y*b - x*a) / (b - a);
    printf("%.2f", z);
    return 0;
}